/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-25 22:54:13  
 * Copyright (c) 2015- -版权所有     
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.bean.BpAccidentCorrectiveMeasureDetailBean;
import com.joysuch.wwyt.bp.bean.BpAccidentDetailBean;
import com.joysuch.wwyt.bp.bean.BpAccidentEditBean;
import com.joysuch.wwyt.bp.bean.BpAccidentListBean;
import com.joysuch.wwyt.bp.entity.BpAccident;
import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import static com.joysuch.wwyt.bp.bean.BpAccidentListBean.SearchBpAccident;

public interface BpAccidentService {

    public BpAccident add(BpAccidentEditBean entity);

    void update(BpAccidentEditBean entity);

    Page<BpAccidentListBean> findByPage(Pageable page,SearchBpAccident condition);

    void delete(Long id) throws BusinessRestrictionsException;

    BpAccidentDetailBean getById(Long id);

    BpAccident findById(Long id);

    ResultBean setMeasure(BpAccidentCorrectiveMeasureDetailBean bean);
}
